home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / pglove.zip / THEGLOVE.DOC < prev   
Text File  |  1993-05-02  |  3KB  |  102 lines

  1. PowerGlove Interface for Parallel Port on IBM
  2.  
  3. BIG NOTE:
  4.   Assemble at YOUR OWN RISK.  I have assembled this
  5.   cable successfully from these directions, BUT any
  6.   damage resulting from construction or use of this
  7.   cable is YOUR problem, not mine.
  8.   (just in case... <g>)
  9.  
  10.  
  11.  
  12. The Connector:
  13.  
  14.        * 1
  15.    7 * * 2
  16.    6 * * 3     Looking AT the connector on glove cable
  17.    5 * * 4
  18.  
  19. Pinout:
  20.   1: Ground
  21.   2: Clock
  22.   3: Latch
  23.   4: Data
  24.   5: N/C (lightgun)
  25.   6: N/C (lightgun)
  26.   7: +5V
  27.  
  28. Connecting it to Parallel Port:
  29.   Glove      Printer Port
  30.   -----      ------------
  31.     1           18  GND
  32.     2            2  D0
  33.     3            3  D1
  34.     4           13  SLCT (input)
  35.  
  36. Power:
  37.   Connect pin 7 on glove to any location with +5V from
  38. the computer.  Pin 1 on any gameport is a good place.
  39. Or, use the keyboard connector.  The +5V on keyboard
  40. should be pin 5 (may be wrong here, I'm using an XT
  41. pinout) as follows:
  42.  
  43.   Looking at back of computer:
  44.         3   1
  45.         5   4
  46.           2
  47.  
  48. The Cable:
  49.   I highly recommend buying one of the extender cables (the
  50. Curtis Super Extendo cable is around $7 for 2 cables) to
  51. chop up for the connector.  This makes it easy to also use
  52. other Nintendo devices and allows TESTING the glove and
  53. still being able to exchange it if defective.  (Plus you get
  54. a long cable to the control box).
  55.  
  56.  
  57. CODING
  58. ------
  59.  
  60. I'm including the latest code developed for the glove.  The
  61. code is from the glove-list-mailing.  The glove-list-mailing
  62. is an information exchange set up on internet to work on the
  63. problem of solving problems in interfacing the glove and
  64. discovering the hires mode.  The code is commented and uses
  65. a glitch-reduction method for VERY clean sampling.  You will
  66. need to adjust the N & D defines to match the timing on your
  67. machine until you get a steady sample.
  68.  
  69. The code is currently set for LPT2. (INPORT = 0x279, OUTPORT
  70. =0x278).  For LPT1, change INPORT to 0x379 and OUTPORT to
  71. 0x378.
  72.  
  73. Sorry, but this code is for Turbo C/C++/Borland C++.  It uses
  74. the BGI library for the graphics cursor.  It is not difficult
  75. to adapt it to Microsoft C (or other), though.
  76.  
  77. All the important info for reading is in the comments.  (BTW,
  78. this is so new, I just received it today; MUCH better than
  79. my original testing code <g>)
  80.  
  81.  
  82. Chris Babcock
  83. 72657,2126
  84. 10/18/91
  85.  
  86.  
  87. ******EXTRA*********
  88. Thanks to Chris for providing the code, which is courtesy of Dave Stampe
  89. (whose internet address is in the code comments, so I won't repeat it here)
  90. As Chris mentioned above, it is written with/for Borland compilers, and as
  91. such, uses the Borland BGI library functions. I have TurboC++, and will try 
  92. to get around to changing the code to make it a free-standing executable, but
  93. there is not enough time in my day, so if somebody wants to do this, feel free
  94. to make the changes, rather than waiting for me! There are timing parameters
  95. to tweak as well. Perhaps someone would like to do some work on this and 
  96. upload it to library13 of COMART?
  97.  
  98. John Eagan
  99. 76130,2225
  100. Section leader,Virtual Reality section of Compuserve Computer Art forum
  101. *********************
  102.